projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8a349
)
(imenu-choose-buffer-index): Avoid trying to select WINDOW if it is nil.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 21 Jul 1995 12:40:55 +0000
(12:40 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 21 Jul 1995 12:40:55 +0000
(12:40 +0000)
lisp/imenu.el
patch
|
blob
|
history
diff --git
a/lisp/imenu.el
b/lisp/imenu.el
index 3fedade04e77249018ff5072b931c0657d63f282..715dcde3773a18016e18f63be93cb80cefdaf72b 100644
(file)
--- a/
lisp/imenu.el
+++ b/
lisp/imenu.el
@@
-966,7
+966,7
@@
The returned value is on the form (INDEX-NAME . INDEX-POSITION)."
(and mouse-triggered
(not (equal last-nonmenu-event '(menu-bar)))
(let ((window (posn-window (event-start last-nonmenu-event))))
- (or (framep window) (select-window window))))
+ (or (framep window) (
null window) (
select-window window))))
;; Create a list for this buffer only when needed.
(while (eq result t)
(setq index-alist (if alist alist (imenu--make-index-alist)))